<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : manageFB.xsl
    Created on : January 31, 2013, 1:23 PM
    Author     : NganNLK60334
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html"/>
    <xsl:template match="/">
        <html>
            <body>
                <table border="4" align="center" >
                    <tr>
                        <th>feedbackID</th>
                        <th>username</th>
                        <th>Title</th>
                        <th>fbContent</th>
                        <th>dateCreated</th>
                            

                    </tr>
                    <xsl:for-each select="feedbacks/feedback">
                        <form method ="POST" action="AdminController">
                            <tr>
                                <td>
                                    <xsl:value-of select = "feedbackID"/>

                                    <xsl:element name="input">
                                        <xsl:attribute name="type">hidden</xsl:attribute>
                                        <xsl:attribute name="name">txtID</xsl:attribute>
                                        <xsl:attribute name="value">
                                            <xsl:value-of select ='feedbackID'/>
                                        </xsl:attribute>
                                        <xsl:attribute name="readonly"></xsl:attribute>
                                    </xsl:element>
                                </td>

                                <td>
                                    <xsl:value-of select = "username"/>
                                </td>

                                <td>
                                    <xsl:value-of select = "title"/>
                                </td>

                                <td>
                                    <xsl:value-of select = "fbContent"/>
                                </td>

                                <td>
                                    <xsl:value-of select = "dateCreated"/>
                                </td>
                                <td>
                                    <button type="submit" name="btnAction" value ="deleteFB">Xóa</button>
                                </td>
                                
                            </tr>
                        </form>              
                    </xsl:for-each>
                </table>
            </body>
        </html>
    </xsl:template>

</xsl:stylesheet>
